﻿using AutoMapper;
using Commonality.DTO.AuthorityDTO;
using Models;
using Models.Authority;

namespace Carlife.APi.Config
{
    public class AutoMapperFile:Profile
    {
        public AutoMapperFile() //构造函数声明
        {
            CreateMap<UserInfoDTO, Users>();
            CreateMap<RolesDTO, Roles>();
            CreateMap<LimitsDTO, Limits>();
            CreateMap<UserRoleDTO, UserRole>();
            CreateMap<RoleLimitsDTO, RoleLimits>();
            CreateMap<SecondaryDTO, Secondary>();
        }

    }
}
